package net.tribal.comic.entities

class Note {

	//	Persistence Attributes
	String 	title
	String 	text
	
	boolean disabled = false
	
	Date 	dateCreated
	Date 	lastUpdated

	
	//	DB Relations
 	static 	belongsTo = [createdBy:	User]
 	
	
	//	DB Constraits
	static constraints = {
		title(blank:false, maxSize:100)
		text(blank:false, maxSize:1000)
	}

	
	//	Default order to sort
/*	static mapping = { sort "dateCreated" }	*/
}
